# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=openfortivpn
pkgver=1.20.5
pkgrel=0
pkgdesc="Openfortivpn is a client for PPP+SSL VPN tunnel services"
url="https://github.com/adrienverge/openfortivpn"
arch="all"
license="GPL-3.0-only"
depends="ppp-daemon"
makedepends="
	autoconf
	automake
	openssl-dev>3
	"
subpackages="$pkgname-doc"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/adrienverge/openfortivpn/archive/v$pkgver.tar.gz
	"
options="!check" # No test suite

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
60797cd794a32205e5c2be5fbd9595b2b3ac419c5bee006690e590257d6bef85c02fb1adcb970e3657259b9affdcab33a8355a424af20426776b8b6ad8deac31  openfortivpn-1.20.5.tar.gz
"
